public class Rectangle extends Shape{
    public int width;
    public int height;
    public Rectangle(String type,int width,int height) {
        super(type);
        this.width = width;
        this.height = height;
    }
    @Override
    public String getType() {
        return super.getType();
    }
    @Override
    public String feature() {
        return "宽："+width+",高:"+height;
    }
    @Override
    public double area() {
        return height*width;
    }
    @Override
    public void print() {
        super.print();
    }
}
